#!/usr/bin/bash
#
# Load T-One images and start all services
#

FILE=$(readlink -f "${BASH_SOURCE[0]}")
CDIR=$(dirname "$FILE")
NAME=$(basename "$FILE")
TMPDIR=${TMPDIR:-"/tmp"}

tone_images=${1?"*** tone-images-v1030_x86.tar"}
config_file=${2?"*** docker-compose_hnli.yaml"}

docker load -i ${tone_images}
docker images
# FIXME: should check all images are loaded as we expected

docker-compose -f ${config_file} up -d
docker ps -a
# FIXME: should check all services are online as we expected
